
    $.ajax({
    type:'get',
    contentType:'application/json',
    url:'/user/findall',
    success:function(res){
    console.log(res);


    for(var i=0;i<res.length;i++)
{
    var username=res[i].user;
    var password=res[i].password;
    var type=res[i].type;
    var html=`

                <td>${username}</td>
                <td>${password}</td>
                <td>${type}</td>

                `;
    $(".table").append(
    "<tr class='tr'>"+
    "<td></td>"+
    "<td></td>"+
    "<td></td>"+
    "</tr>"
    );
    $('.tr').eq(i).html(html);

}
},
    error:function(e){
    console.log(e.status);
}
})
